import Vue from "vue";
import 'vant/lib/index.css';

import {
    Button,
    Tabbar,
    TabbarItem,
    NavBar,
    Sticky,
    Search,
    Swipe, 
    SwipeItem,
    Grid,
    GridItem,
    Divider,
    Lazyload,
    Popup,
    PullRefresh,
    List
} from 'vant';

// 注册时可以配置额外的选项
Vue.use(Lazyload, {
    lazyComponent: true,
  });

Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(PullRefresh);

Vue.use(NavBar);
Vue.use(List);

Vue.use(Button);
Vue.use(Sticky);
Vue.use(Search);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Grid);
Vue.use(GridItem);
Vue.use(Divider);
Vue.use(Lazyload);
Vue.use(Popup);